<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><?php echo $cfg_webname; ?>账号注册</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<link href="<?php echo $mcfg_basehost; ?>/m-css/m-index.css" rel="stylesheet" type="text/css">
<link href="<?php echo $mcfg_basehost; ?>/m-css/m-user-index.css" rel="stylesheet" type="text/css">
<script src="<?php echo $mcfg_basehost; ?>/member/templets/js/j.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="<?php echo $mcfg_basehost; ?>/member/templets/js/reg_new.js"></script>
<script type="text/javascript" src="<?php echo $mcfg_basehost; ?>/m-js/jquery.js"></script>
<script type="text/javascript" language="javascript">
var reMethod = "<?php echo ($cfg_soft_lang == 'utf-8') ? 'POST' : 'GET';?>",pwdmin = <?php echo $cfg_mb_pwdmin; ?>;
function changeAuthCode() {
	var num = 	new Date().getTime();
	var rand = Math.round(Math.random() * 10000);
	num = num + rand;
	$('#ver_code').css('visibility','visible');
	if ($("#vdimgck")[0]) {
		$("#vdimgck")[0].src = "/../vdimgck.php?tag=" + num;
	}
	return false;	
}
function hideVc()
{
	$('#ver_code').css('visibility','hidden');
}
$(document).ready(function(){ 
	$("#passwordLevel").removeClass().addClass("rank r0");
	$("#vdcode").focus(function(){
	  var leftpos = $("#vdcode").position().left;
	  var toppos = $("#vdcode").position().top - 42;
	  $('#ver_code').css('left', leftpos+'px');
	  $('#ver_code').css('top', toppos+'px');
	  $('#ver_code').css('visibility','visible');
	});
	$("input[type='password']").click(function(){
	  hideVc()
	});
	$("#txtUsername").click(function(){
	  hideVc()
	});
	$("input[type='radio']").focus(function(){
	  hideVc()
	});
})
</script>
<style type="text/css">
body{background:#fff;}
.yxw-resetuserid{position:relative;}
.m-m-yzm font{margin:0 15px 15px 15px;display:block;}
.main.pt50{padding-top:50px;padding-bottom:50px;}
.login_box{margin-top:16px;width:100%;}
.login_box .login_box_inputw{margin:0 15px;}
.login_box .login_box_inputw input{padding:16px 12px;color:#333;width:100%;border-radius:3px;box-sizing:border-box;font-size:16px;background:#f3f7fa;margin-bottom:15px;line-height:18px;}
.login_box .submit{width:100%;background:#23b8ff;color:#fff;line-height:44px;height:44px;margin:10px 0;border-radius:3px;text-align:center;font-size:16px;}
.login_box .forgetpw{font-size:14px;color:#297dcc;display:inline-block;margin-top:15px;}

/*账号登录新样式*/
.m-yxw-yyzh{text-align:center;font-size:14px;color:#999;padding:10px 0;}
.m-yxw-denglu{width:100%;color:#ff700a;line-height:44px;height:44px;border-radius:3px;text-align:center;font-size:16px;border:1px solid #ff700a;display:block;box-sizing:border-box;margin-top:10px;}

/*用户注册协议*/
.yxw-yhzcxy{color:#999;font-size:12px;padding:0 15px;margin-top:15px;}
.yxw-yhzcxy a{color:#333;font-size:12px;}

/*重写H1标签*/
.user-h1{text-align:center;font-size:20px;font-weight:400;}
</style>
</head>
<body>

<div class="wrapper">

<h1 class="user-h1"><a href="<?php echo $mcfg_basehost; ?>"><img src="<?php echo $mcfg_basehost; ?>/m-images/m-logo-x.png" style="width:90px;height:100%;"></a></h1>

<div class="login_box">
<form method="post" action="<?php echo $mcfg_basehost; ?>/member/reg_new.php" id="regUser" name="form2">
<input type="hidden" value="regbase" name="dopost"/>
<input type="hidden" value="1" name="step"/>
<input type="hidden" value="个人" name="mtype"/>
<input type="hidden" value="<?php echo $_GET['thirdid']; ?>" name="thirdid"/>
<div class="login_box_inputw"><input type="text" name="userid" id="txtUsername" onkeyup="value=value.replace(/[^0-9a-zA-Z^.]/g,'');" placeholder="请设置账号，建议字母+数字组合" maxlength="11"></div>
<div id="_userid" class="m-m-yzm"></div>
<div class="login_box_inputw"><input type="password" name="userpwd" id="txtPassword" placeholder="请设置密码，建议数字+字母组合" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" maxlength="16"></div>
<div id="_userpwdok" class="m-m-yzm"></div> 
<div class="login_box_inputw yxw-resetuserid">
<input type="text" id="vdcode" name="vdcode" placeholder="请输入验证码" autocomplete="off">
<img id="vdimgck" align="absmiddle" onclick="this.src=this.src+'?'" style="position:absolute;top:5px;right:5px;cursor:pointer;" alt="看不清？点击更换" src="<?php echo $mcfg_basehost; ?>/vdimgck.php"/>
</div>

<div class="login_box_inputw"><button class="submit" type="submit">立即注册</button></div>

<!-- 用户注册协议 -->
<div class="yxw-yhzcxy">注册即代表您已同意<a href="<?php echo $mcfg_basehost; ?>/about/zhucexieyi/">《<?php echo $cfg_webname; ?>用户协议》</a></div>
<!-- 用户注册协议 End -->

<script type="text/javascript">
$("#zphone").click(function(){
if($("#txtUsername").val() == ""){
alert("账号不能为空");return false;
}
if (!/^0-9a-zA-Z$/i.test($("#txtUsername").val())) {
alert("账号不对，请正确填写");return false;
}	
sendMobileCode($("#txtUsername"), $("#mobilecode"), $(this));
});
</script>
</form>
</div>

</div>

</body>
</html>